package com.eightbears.beboy.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.eightbears.beboy.entity.ShopDetailEntity;
import com.eightbears.beboy.R;

public class ShopServesAdapter extends BaseQuickAdapter<ShopDetailEntity.Servers, BaseViewHolder> {

    public ShopServesAdapter() {
        super(R.layout.item_shop_serves, null);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, ShopDetailEntity.Servers servers) {
        String price = String.format(mContext.getText(R.string.text_price).toString(),servers.getPrice());
        baseViewHolder.setText(R.id.tv_name, servers.getName())
                .setText(R.id.tv_price, price);
    }
}
